package cn.wzvtc.inheritance_interface.person;

import lombok.Data;

import java.math.BigDecimal;

/**
 * 员工子类：销售
 */
@Data
public class Sales extends Employee {
  /**
   * 销售额
   */
  private Integer salesVolume;

  /**
   * 提成比例
   */
  private BigDecimal percentage;

  public double calcSalary() {
    System.out.println("计算销售的工资");
    return 1800;
  }
}
